package exam_practice;

public class Cube extends Shape implements Solid {
	private int sideLength;

	public Cube(int s, Point c) {
		super(c);
		sideLength = s;
	}

	public int volume() {
		System.out.print("Cube volume: ");
		return sideLength * sideLength * sideLength;
	}

	public int area() {
		System.out.print("Cube area: ");
		return 6 * sideLength * sideLength;
	}
}
